package com.vip.zj.utils.txt;

import lombok.Data;
import lombok.SneakyThrows;
import org.testng.annotations.Test;
import sun.java2d.pipe.SpanIterator;

import java.nio.charset.StandardCharsets;

/**
 * 文本工具类
 */
public class TextUtils {
    @SneakyThrows
    public static void main(String[] args) {
        String s="new";
        System.out.println(s.equals("new"));
        byte[] bytes = s.getBytes(StandardCharsets.UTF_8);
        for (byte aByte : bytes) {
            System.out.println(aByte);
        }
    }
}
